package com.keba.lamp.complaint.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.keba.basic.base.entity.Entity;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static com.keba.lamp.model.constant.Condition.LIKE;


/**
 * <p>
 * 实体类
 * 案件文书关系表
 * </p>
 *
 * @author twg
 * @date 2025-07-27 17:02:21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("ss_case_doc_template_rel")
public class CaseDocTemplateRel extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 乐观锁
     */
    @TableField(value = "revision", condition = EQUAL)
    @Version
    private Integer revision;
    /**
     * 是否删除，0-未删除，1-删除
     */
    @TableField(value = "is_del", condition = EQUAL)
    private Integer isDel;
    /**
     * 唯一标识字符串
     */
    @TableField(value = "code", condition = LIKE)
    private String code;
    /**
     * 案件id
     */
    @TableField(value = "case_id", condition = EQUAL)
    private Long caseId;
    /**
     * 文书模板id
     */
    @TableField(value = "doc_template_id", condition = EQUAL)
    private Long docTemplateId;
    /**
     * 三方关联的文档模板id
     */
    @TableField(value = "third_doc_template_id", condition = LIKE)
    private String thirdDocTemplateId;
    /**
     * 版本号
     */
    @TableField(value = "version", condition = EQUAL)
    private Integer version;
    /**
     * 大小（单位byte)
     */
    @TableField(value = "size", condition = EQUAL)
    private Integer size;



}
